<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

Class Other extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->data['controller'] = 'other';
        $this->load->model('Mother');
    }

    public function emailsave() {
        $mac = $this->getParamString('mac');
        $called = $this->getParamString('nasid');
        die($this->Mother->saveEmailDB($mac, $called));
    }

    public function mobilesave() {
        $mac = $this->getParamString('mac');
        $called = $this->getParamString('nasid');
        die($this->Mother->saveMobileDB($mac, $called));
    }

    public function facebooksave() {
        $mac = $this->getParamString('mac');
        $called = $this->getParamString('nasid');
        die($this->Mother->saveFacebookDB($mac, $called));
    }

    public function facebookshare() {
        $mac = $this->getParamString('mac');
        $called = $this->getParamString('nasid');
        die($this->Mother->saveFacebookshareDB($mac, $called));
    }

    public function facebooklike() {
        $fbid = $this->getParamString('fbid');
        $called = $this->getParamString('nasid');
        die($this->Mother->saveFacebookLikeDB($fbid, $called));
    }

}
